Bollinger_Bands_Strategy(Add Function) - BB Free (By Wolf)전략 및 지표 얼러트등 파인스크립트 제작 문의 - 트레이딩뷰 메시지
Contact to create strategy and indicators add alert etc - TradingView Message
이름(Name)
Bollinger Bands Strategy (Add Function) (By Wolf)
-해당 전략은 Long & Short 의 신호를 발생시키는 전략입니다.
-The strategy is to generate a signal from Long & Short
기능 추가(Add Function)
-Trade Direction Long
-Trade Direction Short
-Stoploss ($)
-Profit target($)
-Backtest date
해당 전략은 수익률이 높은값으로 임의로 변경해놓았습니다
본인의 투자전략에 맞는 수치로 변경하여 사용하셔도 좋습니다.
*I entered the value with good profits settings for the strategy.
You can use this customarily
소스코드(Source code)
-비공개 (not open to the public)
*모든 전략은 리페인트 코드를 등록하지않았습니다.
-All strategies do not register the repaint code
*모든 전략 및 지표의 백테스트 결과는 BITMEX Fee 0.075% 를 입력한 결과값입니다.
-The back test result for all strategies and indicators is the result of inputting BITEX Fee 0.075%
*모든 거래는 높은 위험을 수반하며, 과거 백테스트 결과가 반드시 현재 및 미래의 결과를 나타내는것은 아닙니다.
가상 또는 시뮬레이션 백테스트 결과는 한계를 가지고 있으며 실제거래와 시장의 변동 및 유동에 따라 똑같지않을
가능성이있으며, 모든 손실에 대한 책임은 본인에게 있습니다.
-All trade involve high risk, and past backtest results do not necessarily represent current and future results.
Virtual or simulated backtest results have limitations and are not consistent with actual transactions and market changes and flows
It is possible and you are responsible for any loss.
在腳本中搜尋"the strat"
Reversal Bar Signal TestReversal Bars are simple indicators I draw on modified uni renko bars. These simply indicates the bars that "can be" a sign of a reversal or at least a retrace in trend.
This is a test with a simple strategy to buy and sell on those reversal signals.
Keep in mind, all the strategies I am providing are single tool being tested. My methodology is a combination of all these tools with the concept being that if each tool can give good result in testing, the synergistic combination will be something that you wouldn't find anywhere else.
Please don't contact me about getting access to these strategies. These strategies are being developed for my students only.
Right now, the English version of website and learning material is under development, as soon as they are ready, there will be comments bellow every single one of the tool set related.
All-in-One Solutions - Long/Short StrategyHello,
I always had in mind that a single strategy cannot be profitable on multiple symbols or commodities ...
This is why I created this strategy where different settings can be applied for each of the symbol you use to trade.
For each symbol you trade, the strategy will ask you for 9 parameters to play with. I already filled the settings for several symbol but it is up to you to find the best 9 parameters for the symbol you like to trade and the time frame you usually use (I often use it in 1H).
The script does not allow any repaint and the Trading view back-testing system is reliable.
For exemple if you like to trade ETH/USD, you have to play with the 9 parameters and find the best net profitability calculated by the back-testing of Trading View.
Here is a screenshot of the setting page of the strategy :
imgur.com
You can find also below the link to all the previous scripts I published :
fr.tradingview.com
PS: please do not ask me to add in this strategy an alert system as Trading View does not allow to implement alerts in strategies script (because strategies scripts run on you computer, where alerts are located on TV servers).
Nevertheless if there is a demand, I can develop an indicator where you can implement the best settings found by you in this strategy and use it as an alerts script.
Please ask me for access, I grant free 1 week full access to all my indicators.
Have fun !
Last Update:
- I added the bar color in order to see on the chart the Long and Short positions
- I added the panels Open and Close positions to be visible on the chart
- I added an horizontal line on the chart when a position is open in order to see on the chart if position is positive or negative
- I modified the parameters description in order to make it more clear
I filled nice settings for 5 cryptos. If you find suitable settings for other commodities, please share the parameters into the comment in order to share with the community.
All-in-One Solutions - Long/Short StrategyHello,
I always had in mind that a single strategy cannot be profitable on multiple symbols or commodities...
This is why I created this strategy where different settings can be applied for each of the symbol you use to trade.
For each symbol you trade, the strategy will ask you for 9 parameters to play with. I already filled the settings for several symbol but it is up to you to find the best 9 parameters for the symbol you like to trade and the time frame you usually use (I often use it in 1H).
The script does not allow any repaint and the Trading view back-testing system is reliable.
For exemple if you like to trade ETH/USD, you have to play with the 9 parameters and find the best net profitability calculated by the back-testing of Trading View.
Here is a screenshot of the setting page of the strategy :
imgur.com
You can find also below the link to all the previous scripts I published :
fr.tradingview.com
PS: please do not ask me to add in this strategy an alert system as Trading View does not allow to implement alerts in strategies script (because strategies scripts run on you computer, where alerts are located on TV servers).
Nevertheless if there is a demand, I can develop an indicator where you can implement the best settings found by you in this strategy and use it as an alerts script.
Please ask me for access, I grant free 1 week full access to all my indicators.
Have fun !
TOLGA ZORLUHello TradingView and world!
This is one of our latest concepts for an actual bot builder. This script comes with a bunch of features that we're hoping will alleviate a lot of the stress and confusion around using and building strategies here on TV. Especially if the end-goal is to automate the strategies using Autoview.
This is a combination of 2 strategies, and gives you full control of each component within the script.
The 2 strategies are:
2 Moving Averages == if close is greater than moving average and moving average 1 is greater than moving average 2
Bolling Bands == if close is less than lower or greater than upper
Features / Settings included :
- Ability to change settings from a commodity market (default) to an altcoin or forex market.
- Backtest time period selector component
- Heiken Ashi Candles on/off
- Moving Average Strategy on/off
- Bollinger Bands Strategy on/off
- Both Moving Average settings can be adjusted
- Bollinger Bands length and multiplier can be adjusted.
- Pyramiding Greater Than, Equal To, or Less Than
- Trailing Stop with the ability to set a price in which the Trailing Stop activate
- Take Profit on/off and editable
- Stop Loss on/off and editable
- Margin Call on/off dependent on Leverage which is editable
- If pyramiding is used, the strategy will calculate and display your average on the chart
- Profit and Loss visuals added to the chart
Profit Trailer Tester v0.2This script combines all buy and sell strategies of the Profit Trailer bot for research, backtesting (simulation) and teaching those strategies. Due to several reasons, the script cannot emulate the Profit Trailer strategies 100%. It is more to visualize the strategies and support you in your decisions.
It is an early version and still under heavy development and testing. Currently, 'DCA' and trailing are not implemented yet.
Please send a PM to get access to the script.
NOTICE: By requesting access to this script you acknowledge that you have read and understood that this is for research purposes only, and I am not responsible for any financial losses you may incur by using this script!
Moving Average Cross and/or Bbands botHello TradingView and world!
This is one of our latest concepts for an actual bot builder. This script comes with a bunch of features that we're hoping will alleviate a lot of the stress and confusion around using and building strategies here on TV. Especially if the end-goal is to automate the strategies using Autoview.
This is a combination of 2 strategies, and gives you full control of each component within the script.
The 2 strategies are:
2 Moving Averages == if close is greater than moving average and moving average 1 is greater than moving average 2
Bolling Bands == if close is less than lower or greater than upper
Features / Settings included :
- Ability to change settings from a commodity market (default) to an altcoin or forex market.
- Backtest time period selector component
- Heiken Ashi Candles on/off
- Moving Average Strategy on/off
- Bollinger Bands Strategy on/off
- Both Moving Average settings can be adjusted
- Bollinger Bands length and multiplier can be adjusted.
- Pyramiding Greater Than, Equal To, or Less Than
- Trailing Stop with the ability to set a price in which the Trailing Stop activate
- Take Profit on/off and editable
- Stop Loss on/off and editable
- Margin Call on/off dependent on Leverage which is editable
- If pyramiding is used, the strategy will calculate and display your average on the chart
- Profit and Loss visuals added to the chart
You can watch a video here on how all the settings can be used and work together.
www.youtube.com
You can learn more about Autoview here:
autoview.with.pink
Get your invite and join us in slack here:
slack.with.pink
Heiken Ashi + Ichimoku Kinko Hyo StrategyHeikin-Ashi:
Instead of using the open-high-low-close (OHLC) bars like standard candlestick charts, it uses a modified formula. Out of which only following two are used in this strategy.
High = Max (High,Open,Close)
Low = Min (Low,Open, Close)
Ichimoku Kinko Hyo:
The Ichimoku Kinko Hyo system includes five kinds of signal, of which this strategy uses four signals i.e. Tenkan Sen / Kijun Sen Cross, price crosses the Kijun Sen, Chikou Span and Kumo. Although the Chikou Span, Senkou Span A and Senkou Span B (Kumo) are shifted into the past/future, these trigger signals enhances the strategy.
The Tenkan Sen, also known as the Turning or Conversion line, is a moving average of the highest high and lowest low over the last 9 periods in this strategy.
The Kijun Sen, also known as the Standard or Base line, is a moving average of the highest high and lowest low over the last 24 periods in this strategy.
The Chikou Span, also known as the Lagging line, is the closing price plotted 24 periods behind in this strategy.
The Senkou Span A, also known as the 1st leading line, is a moving average of the Tenkan Sen and Kijun Sen and is plotted 24 periods ahead in this strategy.
The Senkou Span B, also known as the 2nd leading line, is a moving average of the highest high and lowest low over the last 51 trading days is plotted 24 periods ahead in this strategy.
Hull MA-X + Ichimoku Kinko Hyo StrategyHull MA-X:
The Hull MA involves the weighted moving average ( WMA ) in its calculation.
First, calculate the WMA with period (n / 2) and multiply this by 2. Remember ‘n’ is the time period configurable based on the trader’s requirement.
Second, calculate the WMA for period “n” and subtract if from the first step. Thirdly, calculate the weighted moving average with period sqrt (n) using the data from the second step. You can take a look at the below formula:
Hull MA= WMA (2*WMA (n/2) − WMA (n)), sqrt (n))
The default setting is 12 periods in this strategy, fast Hull MA crossing slow Hull MA will generate a circle on charts.
Ichimoku Kinko Hyo:
The Ichimoku Kinko Hyo system includes five kinds of signal, of which this strategy uses four signals i.e. Tenkan Sen / Kijun Sen Cross, price crosses the Kijun Sen, Chikou Span and Kumo. Although the Chikou Span, Senkou Span A and Senkou Span B (Kumo) are shifted into the past/future, these trigger signals enhances the strategy.
The Tenkan Sen, also known as the Turning or Conversion line, is a moving average of the highest high and lowest low over the last 9 periods in this strategy.
The Kijun Sen, also known as the Standard or Base line, is a moving average of the highest high and lowest low over the last 24 periods in this strategy.
The Chikou Span, also known as the Lagging line, is the closing price plotted 24 periods behind in this strategy.
The Senkou Span A, also known as the 1st leading line, is a moving average of the Tenkan Sen and Kijun Sen and is plotted 24 periods ahead in this strategy.
The Senkou Span B, also known as the 2nd leading line, is a moving average of the highest high and lowest low over the last 51 trading days is plotted 24 periods ahead in this strategy.
As with most technical analysis methods, Ichimoku is likely to produce frequent conflicting signals in non-trending markets, So in addition to Ichimoku Kinko Hyo, the Hull MA is used, which is popular amongst some day traders, in combination it attempts to give an accurate signal by eliminating lags and improving the smoothness of the line.
The Hull MA Cross in combination with Ichimoku Kinko Hyo signals tries to give an accurate signal by eliminating lags and improve the smoothness of price activity. Please note that price trends can and do change often, so your readings of the charts and this trading system should be probabilistic, rather than predictive.
Ichimoku Kinko Hyo + HULL-MA_X + MacDThe Ichimoku Kinko Hyo system includes five kinds of signal, of which this strategy uses the most recent of ones i.e. Tenkan Sen / Kijun Sen Cross and price crosses the Kijun Sen. As the Chikou Span, Senkou Span A and Senkou Span B are shifted into the past/future, the trigger signals will be only be used for visual confirmation and not part of the strategy.
The Tenkan Sen, also known as the Turning or Conversion line, is a moving average of the highest high and lowest low over the last 9 periods in this strategy.
The Kijun Sen, also known as the Standard or Base line, is a moving average of the highest high and lowest low over the last 24 periods in this strategy.
The Chikou Span, also known as the Lagging line, is the closing price plotted 24 periods behind in this strategy.
The Senkou Span A, also known as the 1st leading line, is a moving average of the Tenkan Sen and Kijun Sen and is plotted 24 periods ahead in this strategy.
The Senkou Span B, also known as the 2nd leading line, is a moving average of the highest high and lowest low over the last 51 trading days is plotted 24 periods ahead in this strategy.
Moving average convergence divergence (MaCD) is a trend-following momentum indicator that shows the relationship between two moving averages of prices. The MaCD is calculated in this strategy by subtracting the 24-day exponential moving average (EMA) from the 12-day EMA. A nine-day EMA of the MACD, called the "signal line", aMaCD in this case, is then plotted on top of the MaCD. In this strategy, MaCD/ aMaCD Cross is functioning as a trigger for buy and sell signals.
As with most technical analysis methods, Ichimoku is likely to produce frequent conflicting signals in non-trending markets, So in addition to Ichimoku Kinko Hyo, the Hull MA is popular amongst some day traders, as the indicator which in combination with MaCD attempts to give an accurate signal by eliminating lags and improving the smoothness of the line.
Alan Hull, developed this moving average indicator and hence it’s called the Hull MA.
Now, let’s dissect how the Hull moving average is calculated.
The Hull MA involves the weighted moving average (WMA) in its calculation.
First, calculate the WMA with period (n / 2) and multiply this by 2. Remember ‘n’ is the time period configurable based on the trader’s requirement. The default setting is 12 periods in this strategy, fast Hull MA crossing slow Hull MA will generate a circle on charts.
Second, calculate the WMA for period “n” and subtract if from the first step. Thirdly, calculate the weighted moving average with period sqrt (n) using the data from the second step. You can take a look at the below formula:
Hull MA= WMA (2*WMA (n/2) − WMA (n)), sqrt (n))
The Hull MA Cross in combination with Tenkan Sen / Kijun Sen Cross and MaCD tries to give an accurate signal by eliminating lags and improve the smoothness of price activity. Please note that price trends can and do change often, so your readings of the charts and this trading system should be probabilistic, rather than predictive.
cooltoyz: The Turtle SurferThis strategy applies the old tested turtle trading strategy, defining a channel and riding the trend, but
It has some twists tough, to make it adapt on the fly to changes in market conditions.
Since all parameters can be adjusted from the inputs, the strat can (and needs) to be fine tuned for the current values of an asset. for example, for gold values, it works good for years. for btc, it breaks for dates with values under 1500$. that's because 1% of 800 is not the same as 1% of 2400$..... Yeah, data fitting, i know all that....
Some of the parameters work well only for low volatility markets, others are designed exactly to capture volatility. So the parameters must be tested, turned on-off to see how well they do. The default values ARE NOT a generic good for all, most surely.
The Turtle Surfer moves slowly, but it's prepared to rabbit jump in/out if some moon/doom event shows up without invitation :)
If you want to play with the strat, start with all checkboxes off, then turn on/off each one and see the results for the asset you want.
I have had good results in xau, btc and eth
High Risk S&P 500 Buy The Dip Strategy, Albireo (by ChartArt)This strategy which has no stop loss and therefore is a high risk strategy, goes long as soon as the "S&P 500" on "OANDA" or "FXCM" starts a downtrend. A Bollinger Band filters the more extreme downtrends. The Bollinger Band setting can be changed to filter selectively for even more severe price declines or to allow more trades by setting the standard deviation to a lower value.
This "S&P 500" strategy only correctly works as intended on "OANDA" or "FXCM" (with default setting "OANDA"), because "OANDA" or "FXCM" are the only two price sources allowed in the strategy.
If you don't want to lose all your money due to some random strategy you found on the Internet, here is a warning:
All trading involves high risk; past performance is not necessarily indicative of future results.
P.S. Here are more trade examples, which help to explain why I named this a high risk strategy:
B3 Edge Trail-TraderAnswer to the locked strategy... Formerly "High-Low Trader" .. Changed the name to Edge Trail Trader to delineate from the locked version, which is no different. You can add this one to your favorites now.
Similar to SuperTrend or the ATR trailing stop lines that are common-place in chart indicator circles, the B3 High-Low Trail-Trader works as a back-break line to flip binary long and short biasing. Here is the strategy set to 7 bars back. You can find this style of trading system in several books, and there are many ways to come to the trailing stop line, so I imagine the bars back length can be slid around to suit certain charts. This happens to be my favorite trailing line.
Lazy MomentumLazy Momentum Strategy is a trend trading strategy. There are 3 steps in the strategy:
1. Identify trend
2. Momentum Signal
3. Money management
Strategy Code Example - Risk Management*** THIS IS JUST AN EXAMPLE OF STRATEGY RISK MANAGEMENT CODE IMPLEMENTATION ***
For my own future reference, and for anyone else who needs it.
Pine script strategy code can be confusing and awkward, so I finally sat down and had a little think about it and put something together that actually works (i think...)
Code is commented where I felt might be necessary (pretty much everything..) and covers:
Take Profit
Stop Loss
Trailing Stop
Trailing Stop Offset
...and details how to handle the input values for these in a way that allows them to be disabled if set to 0, without breaking the strategy.exit functionality or requiring a silly amount of statement nesting.
Also shows how to use functions (or variables/series) to execute trade entries and exits.
Cheers!
Everyday 0003 _ MAC Pullback I recently posted a Moving Averge Crossover strategy for my Everyday project - a project I've given myself where I try to create one strategy everyday in between 15 minutes and 2 hours.
In the comments of my last published idea, user SignalTradersUK was very kind and suggested I try the following in my next study:
"i think your next study should be, to workout what to do after the Moving Average cross! If you look just on the chart you have posted, Price would appear to always come back to the levels where the 2 MA's cross and then go back in the direction of the crossing of the MA's. It's a great pull back strategy."
I'm really just beginning to learn about coding strategies so I'm not 100% sure I correctly understood his suggestion.
I admit I had difficulties wrapping my head around how to do this.
Anyway, the result is a strategy which runs alongside the main Moving Average Crossover.
'The Algorithm'
When the fast and slow MA cross the strategy traces back 40 days to find a swing low.
This swing low and the price at the MA cross is used to calculate a fib 1.272 extension.
The price at this 1.272 extension is used to place a Pullback short order.
Since we're shorting a bull trend, a tight stop is used.
If the pullback reaches down to the fib 0.618 we take profit (close the short).
Like I said, I don't know if I correctly understood SignalTradersUK feedback, but I really appreciate the
feedback and advice!
As always I'm hoping to learn from the community, so all feedback, corrections and advice is very welcome!
Thanks!
/pbergden
Outsidebar vs Insidebar, Illusion Strategy (by ChartArt)WARNING: This strategy does not work! Please don't trade with this strategy
I'm sharing this strategy for the following three educational reasons:
1. You can easily find 100% strategies, but if they only seem to work 100% on one asset, they actually don't work at all. Therefore never backtest your strategy only on one asset, especially forward testing is useless, because it tends to repeat the old patterns. Your strategy has to work on as many different assets as possible.
2. The pyramiding of orders can have an impact on the strategy. In this case if you manually change the strategy settings by increasing it from 1 to 100 pyramiding orders changes the percent profitable on "UKOIL" monthly from 100% to 90% profitable. On other assets you can see very different results. Allowing much more pyramiding orders in this case results in opening orders where the background color highlights appear.
3. The Tradingview backtest beta version currently does not close the last open trade during the backtest. In this case going long on "UKOIL" near the top in 2011 as this strategy did would result in a big loss in 2015. But since the trade is still open and not canceled out by a new short order it still appears as if this strategy works 100% profitable. Which it doesn't.
[AutoView] MovingAvg Cross - Video AttachedThere is nothing special or spectacular about this script. It's your standard Moving Average Cross Strategy. It is actually a built in script everyone has access to already. I only changed some of the settings and flipped the orders.
The reason I actually published this, is because people have been asking me what the best way to find the best settings for a strategy. So I made a YouTube video showing people how I personally do it. I took this built in strategy and within 5 minutes took it from a net profit loss and profit factor of 0.5 to a net profit win with a profit factor of 3-5.
Of course this is only on the 1 minute candles, so forward testing the strategy is a must as I do not recommend straight up taking this and trading it.
You can watch the video here:
www.youtube.com
Hope this helps everyone speed up their back testing and fine tuning their strategies.
How to automate this strategy for free using a chrome extension.Hey everyone,
Recently we developed a chrome extension for automating TradingView strategies using the alerts they provide. Initially we were charging a monthly fee for the extension, but we have now decided to make it FREE for everyone. So to display the power of automating strategies via TradingView, we figured we would also provide a profitable strategy along with the custom alert script and commands for the alerts so you can easily cut and paste to begin trading for profit while you sleep.
Step 1:
You are going to need to download the Chrome Extension called AutoView. You can get the extension for free by following this link: bit.ly ( I had to shorten the link as it contains Google and TV automatically converts it to a symbol)
Step 2: Go to your chrome extension page, and under the new extension you'll see a "settings" button. In the setting you will have to connect and give permission to the exchange 1broker allowing the extension to place your orders automatically when triggered by an alert.
Step 3: Setup the strategy and custom script for the alerts in TradingView. The attached script is the strategy, you can play with the settings yourself to try and get better numbers/performance if you please.
This following script is for the custom alerts:
//@version=2
study("4All-Alert", shorttitle="Alerts")
src = close
len = input(4, minval=1, title="Length")
up = rma(max(change(src), 0), len)
down = rma(-min(change(src), 0), len)
rsi = down == 0 ? 100 : up == 0 ? 0 : 100 - (100 / (1 + up / down))
rsin = input(5)
sn = 100 - rsin
ln = 0 + rsin
short = crossover(rsi, sn) ? 1 : 0
long = crossunder(rsi, ln) ? 1 : 0
plot(long, "Long", color=green)
plot(short, "Short", color=red)
Now that you have the extension installed, the custom strategy and alert scripts in place, you simply need to create the alerts.
To get the alerts to communicate with the extension properly, there is a specific syntax that you will need to put in the message of the alert. You can find more details about the syntax here : gist.github.com
For this specific strategy, I use the Alerts script, long/short greater than 0.9 on close.
In the message for a long place this as your message:
Long
c=order b=short
c=position b=short l=200 t=market
b=long q=0.01 l=200 t=market tp=13 sl=25
and for the short...
Short
c=order b=long
c=position b=long l=200 t=market
b=short q=0.01 l=200 t=market tp=13 sl=25
If you'll notice in my above messages, compared to the strategy my tp and sl (take profit and stop loss) vary by a few pips. This is to cover the market opens and spread on 1broker. You can change the tp and sl in the strategy to the above and see that the overall profit will not vary much at all.
I hope this all makes sense and it is enough to not only make some people money, but to show the power of coming up with your own strategy and automating it using TradingView alerts and the free Chrome Extension AutoView.
ps. I highly recommend upgrading your TradingView account so you have access to back testing and multiple alerts.
There is really no reason you won't cover the cost and then some on a monthly basis using the tools provided.
Best of luck and happy trading.
Note: The extension currently allows for automation on 2 exchanges; 1broker and Okcoin. If you do not have accounts there, we'd appreciate you signing up using our referral links.
www.okcoin.com
1broker.com
ALMA & UT Bot Confluence StrategyALMA & UT Bot Confluence Strategy
This is a comprehensive trend-following and momentum strategy designed to identify high-probability trade setups by combining multiple layers of confirmation. It is built around an ALMA (Arnaud Legoux Moving Average) and a long-term EMA, and then enhances signal quality with the popular UT Bot indicator, a Volume Filter, and an adaptive hold mechanism.
The primary goal of this strategy is to filter out market noise, avoid low liquidity traps, and provide more robust and selective trading logic by adapting its timing to changing market volatility.
Key Features and How It Works
This strategy is not a simple crossover system. An entry signal is generated by the confluence of only a few conditions:
Underlying Trend and Signal Engine:
ALMA (Arnaud Legoux Moving Average): Provides a responsive, low-latency signal line for entries. EMA (Exponential Moving Average): A longer-term EMA acts as a primary trend filter, ensuring trades are executed only in line with the overall market trend.
Confirmation Layer:
UT Bot Confirmation: A trade is considered valid only when the UT Bot indicator provides a relevant buy or sell signal. This acts as a strong secondary confirmation, reducing false entries.
Advanced Filters for Signal Quality:
Volume Filter: This is an important safety mechanism that prevents trades from being executed in low-volume, illiquid markets where price action can be erratic and unreliable.
Momentum Filter (ADX and RSI): The strategy uses the ADX to check for sufficient market momentum and the RSI to ensure it doesn't enter overbought/oversold zones.
Volatility Filter (Bollinger Bands): This helps prevent entries when the price deviates too far from its average, preventing "buying at the top" or "selling at the bottom." Adaptive Timing (Dynamic Cool-Down):
Instead of a fixed waiting period between trades, this strategy uses a dynamic cooling-down period based on the ATR. It automatically waits longer during periods of high volatility (to prevent volatility) and becomes more responsive in calmer markets. How to Use This Strategy:
Long Entry (BUY): When all bullish conditions align, a green "BUY" triangle appears below the price.
Short Entry (SELL): When all bearish conditions align, a red "SELL" triangle appears above the price.
Trend Visualization: The chart background is color-coded according to UT Bot's trend direction (Green for an uptrend, Red for a downtrend), allowing for at-a-glance market analysis.
Double Exit Strategy Options
You have full control over how you exit trades:
Classic SL/TP: Use a standard Stop-Loss and Take-Profit order based on ATR (Average True Range) multipliers. UT Bot Trailing Stop (Recommended): A dynamic exit mechanism that follows the price allows your winning trades to catch up to larger trends while protecting your profits.
Disclaimer
This script is for educational purposes only and should not be construed as financial advice. Past performance is not indicative of future results. All trades involve risk. Before risking any capital, we strongly recommend extensively backtesting this strategy across your preferred assets and timeframes to understand its behavior and find settings that suit your personal trading style.
The author recommends using this strategy with Heikin-Ashi candlesticks. Using this method will significantly increase the strategy's trading success rate and profitability in backtests.
You should change the settings according to your preferred chart time range. You can find the best value for you by observing the value changes you make on the chart.
Recovery Zone Hedging [Starbots]Recovery Zone Hedging Strategy — Advanced Adaptive Hedge Recovery System
This strategy introduces an innovative zone-based hedge recovery approach tailored to TradingView’s single-direction trading model. Designed for serious traders and professionals, it combines multiple technical indicators with dynamic position sizing and adaptive take-profit mechanisms to manage drawdowns and maximize recovery efficiency.
How Recovery Zones Are Calculated
The strategy defines recovery zones as a configurable percentage distance from the last executed trade price. This percentage can be adjusted to suit different market volatility environments — wider zones for volatile assets, tighter zones for stable ones. When price moves into a recovery zone against the open position, the strategy places a hedge trade in the opposite direction to help recoup losses.
Dynamic Take-Profit Calculation
Take-profit targets are not fixed. Instead, they increase dynamically based on any accumulated losses from previous hedge trades. For example, if your initial target is 2%, but you have a $5 loss from prior hedges, the next take-profit target adjusts upward to cover both the loss and your profit goal, ensuring the entire hedge sequence closes in net profit.
Originality & Value
Unlike traditional hedging or recovery scripts that rely on static stop losses and fixed trade sizing, this strategy offers:
- Dynamic Hedge Entry Zones: Uses configurable percentage-based recovery zones that adapt to price volatility, allowing precise placement of hedge trades at meaningful reversal levels.
- Multi-Indicator Signal Fusion: Integrates MACD and Directional Movement Index (DMI) signals to confirm trade entries, improving signal accuracy and reducing false triggers.
- Exponential Position Sizing: Each hedge trade’s size grows exponentially using a customizable multiplier, accelerating loss recovery while carefully balancing capital usage.
- Adaptive Take-Profit Logic: The take-profit target adjusts dynamically based on accumulated losses and profit margins, ensuring that the entire hedge sequence closes with a net gain.
- Capital Usage Monitoring: A built-in dashboard tracks real-time equity consumption, preventing over-leveraging by highlighting critical capital thresholds.
- Fail-Safe Exit Mechanism: An optional forced exit beyond the last hedge zone protects capital in extreme market scenarios.
This strategy’s layered design and adaptive mechanisms provide a unique and powerful tool for traders seeking robust recovery systems beyond standard hedge or martingale methods.
How Components Work Together
- Entry Signals: The script listens for MACD line crossovers and DMI directional crosses to open an initial trade.
- Recovery Zones: If the market moves against the initial position, the strategy calculates a recovery zone a set percentage away and places a hedge trade in the opposite direction.
- Position Scaling: Each subsequent hedge trade increases in size exponentially according to the hedge multiplier, designed to recover all previous losses plus a profit.
- Take-Profit Target: Rather than a fixed target, the TP level is dynamically calculated considering current drawdown and desired profit margin, ensuring the entire hedge sequence closes profitably.
- Cycle Management: Trades alternate direction following the recovery zones until profit is realized or a maximum hedge count is reached. If needed, a forced stop-out limits risk exposure.
Key Benefits for Professional Traders
- Enhanced Risk Management: Real-time capital usage visualization helps maintain safe exposure levels.
- Strategic Hedge Recovery: The adaptive recovery zones and exponential sizing accelerate loss recoupment more efficiently than traditional fixed-step systems.
- Multi-Indicator Confirmation: Combining MACD and DMI reduces false signals and improves hedge timing accuracy.
- Versatility: Suitable for multiple timeframes and asset classes with adjustable parameters.
- Comprehensive Visuals: On-chart recovery zones, hedge levels, dynamic take-profits, and equity usage tables enable informed decision-making.
Recommended Settings & Use Cases
- Initial Position Size: 0.1–1% of account equity
- Recovery Zone Distance: 2–5% price movement
- Hedge Multiplier: 1.5–1.85x growth per hedge step
- Max Hedge Steps: 5–10 for controlled risk exposure
Ideal for trending markets where price retracements create viable recovery opportunities. Use caution in sideways markets to avoid extended hedge sequences.
Important Notes
- TradingView’s single-direction model means hedging is simulated via alternating trades.
- Position sizes grow rapidly—proper parameter tuning is essential to avoid over-leveraging.
This script is designed primarily for professional traders seeking an advanced, automated hedge recovery framework, offering superior capital efficiency and loss management.
استراتژی ساز نئو 01 🇮🇷
A **Strategy Builder** is a tool or framework that lets you **design, test, and optimize** a trading strategy based on predefined rules and conditions.
**Purpose**
The main goal is to remove emotional decision-making from trading by replacing it with systematic, rule-based execution.
**How it works**
1. **Define rules** – You set entry, exit, and risk management conditions (e.g., *Buy when the 50-period moving average crosses above the 200-period moving average*).
2. **Choose parameters** – Such as indicator periods, stop-loss levels, take-profit targets, or position sizing methods.
3. **Backtesting** – The builder tests these rules on historical price data to show how the strategy would have performed in the past.
4. **Optimization** – Adjust the parameters to find the most effective setup while avoiding overfitting.
5. **Deployment** – Use the final strategy either for manual trading or connect it to an automated trading bot.
**Key Benefits**
* **Consistency** – Eliminates impulsive trades.
* **Data-driven decisions** – Every trade is based on tested rules, not guesswork.
* **Time-saving** – Once the rules are set, execution can be automated.
* **Scalability** – You can create multiple strategies for different markets or timeframes.
**Example**
Imagine you want to trade EUR/USD:
* **Entry rule:** Buy when RSI < 30 and the price is above the 50 SMA.
* **Exit rule:** Sell when RSI > 70 or price falls below the 50 SMA.
* **Risk control:** Risk 2% of account balance per trade.
A Strategy Builder lets you input those rules, run them on 5 years of EUR/USD historical data, and see metrics like win rate, maximum drawdown, and profit factor before risking real money.
---
If you want, I can give you a **visual diagram** showing how the process flows from idea → testing → optimization → execution. That makes the concept much easier to grasp.
1 Triple EMA Crossover Strategy (x, 3x, 9x)An excellent EMA strategy.
x, 3x, and 9x: These represent the periods of the EMAs. For example, if 'x' is 10, then you would have a 10-day EMA, a 30-day EMA, and a 90-day EMA.
Crossover: The strategy relies on identifying when the price or the shorter-term EMAs cross above or below the longer-term EMAs, signaling potential buy or sell opportunities.
How the Strategy Works:
1. Trend Identification:
The relationship between the three EMAs indicates the overall trend. If the 3x EMA is above the 9x EMA, and the x EMA is above both, it suggests an uptrend. Conversely, if the 3x EMA is below the 9x EMA, and the x EMA is below both, it indicates a downtrend.
2. Buy Signals:
A buy signal might be generated when the shortest EMA (x) crosses above the medium EMA (3x) and then both cross above the longest EMA (9x), suggesting a potential breakout.
3. Sell Signals:
A sell signal might be generated when the shortest EMA (x) crosses below the medium EMA (3x) and then both cross below the longest EMA (9x), suggesting a potential breakdown.
---------------------------------------------------------------------------------------------------------
Unlocking Trends with the Triple EMA Crossover Strategy (x, 3x, 9x)
Welcome to an intuitive yet powerful trend-following strategy designed for clarity and actionable signals: the Triple EMA Crossover. This Pine Script® indicator leverages the Exponential Moving Average (EMA) to help traders identify prevailing trends, potential breakouts, and breakdowns with enhanced precision. Built on a simple, scalable 'x, 3x, 9x' methodology, it provides a dynamic framework for navigating market movements.
Understanding the x, 3x, 9x EMA Foundation
At its core, this strategy utilizes three Exponential Moving Averages, each acting as a distinct lens on price action. Unlike Simple Moving Averages (SMAs) which give equal weight to all data points, EMAs place a greater emphasis on recent prices, making them more responsive to current market conditions—a crucial advantage in fast-paced environments like intraday trading.
The "x, 3x, 9x" nomenclature is elegantly simple:
x EMA (Fast EMA): This is your shortest-period EMA, highly sensitive to immediate price changes. It acts as the leading indicator, quickly reacting to shifts in momentum.
3x EMA (Medium EMA): Calculated with three times the 'x' period, this EMA provides a smoother, yet still responsive, view of the short-to-medium term trend. It often acts as dynamic support or resistance.
9x EMA (Slow EMA): Representing nine times the 'x' period, this is your longest EMA. It filters out much of the market noise, giving you a clear picture of the underlying dominant trend.
The beauty of this setup lies in its adaptability. By simply adjusting the Base EMA Period (x) input in the script settings, you can automatically calibrate all three EMAs to suit different instruments, volatility levels, or even your preferred trading style. A common starting point for 'x' in intraday trading on a 5-minute chart is 10, which translates to 10, 30, and 90-period EMAs.
How the Strategy Works: Signals and Trend Identification
The power of the Triple EMA Crossover lies in the interplay and alignment of these three moving averages.
1. Trend Identification
The relative positioning of the EMAs paints a clear picture of the market's trend:
Uptrend (Bullish): When the emaX (fast) is above the ema3X (medium), and the ema3X is, in turn, above the ema9X (slow), it indicates a strong bullish trend. This "stacked" alignment suggests robust upward momentum.
Downtrend (Bearish): Conversely, if the emaX (fast) is below the ema3X (medium), and the ema3X is below the ema9X (slow), it signals a clear bearish trend.
2. Buy Signals 🟢
A buy signal is generated when the swift emaX crosses above the ema3X, AND simultaneously, the ema3X is already above the ema9X. This combined condition ensures that the shorter-term momentum is shifting upward while the underlying medium-term trend remains strong and aligned with the longer-term direction. This reduces false signals often seen with simple two-EMA crossovers, aiming to capture high-probability upward moves. The script will plot a green upward-pointing triangle below the candle to visually alert you to this entry.
3. Sell Signals 🔴
A sell signal occurs when the quick emaX crosses below the ema3X, AND the ema3X is already below the ema9X. This indicates that the short-term momentum is shifting downwards, confirming a bearish bias within the broader downtrend. This comprehensive confirmation helps identify potential breakdowns and exit points for long positions or entry points for short trades. A red downward-pointing triangle will appear above the candle to mark this signal.
The strategy also includes an intuitive exit mechanism: if a buy signal is active and a sell condition is met, the long position will be closed, and vice-versa for short positions. This ensures you're always aligned with the most recent confirmed trend direction.
Key Advantages for Traders
Clarity: Provides visually clear trend direction and momentum shifts.
Responsiveness: EMAs react faster to price changes compared to SMAs, making them ideal for dynamic markets.
Confirmation: The three-EMA alignment significantly reduces false signals, leading to higher-conviction trades.
Adaptability: The x input allows you to fine-tune the strategy for various assets and market conditions.
Simplicity: Despite its effectiveness, the logic remains straightforward and easy to understand.
Important Considerations for Day Trading
For optimal performance in intraday trading, it's highly recommended to apply this strategy on a 5-minute chart. This timeframe strikes the perfect balance between capturing rapid price action and filtering out excessive market noise, allowing the EMA crossovers to provide meaningful signals. Always combine this technical analysis with sound risk management, including stop-loss orders, and consider other indicators or fundamental analysis for further confirmation.
Customization and Disclaimer
Feel free to experiment with the Base EMA Period (x) input to find the optimal settings that resonate with your trading style and the specific instruments you trade. Remember, no single strategy guarantees profits, and past performance is not indicative of future results. This script is provided for educational and illustrative purposes. Always conduct your own research and risk assessment before trading with real capital. Happy Trading!